<%@ page language="java" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/core/common/top.jsp" %>
<html>
	<head>
<script>
			
	function doAdd(){
		location.href="${ctx}/systemManage/operatorManager.action?act=addInput&pageState=add";
	}

	function doEdit(id){
		location.href="${ctx}/systemManage/operatorManager.action?act=editInput&pageState=edit&operator.id="+id;
	}

	function doView(id){
		location.href="${ctx}/systemManage/operatorManager.action?act=view&operator.id="+id;
	}
	
	function doDelete(id) {
		if(confirm("<s:text name='message.delete.confirm'/>")) {
			location.href="${ctx}/systemManage/operatorManager.action?act=delete&operator.id="+id;
		}
	}			
</script>
	</head>
 	<body style="overflow-x:hidden;overflow-y:auto;">
		<table width="98%" border="0" align="center" valign="top" cellpadding="0" cellspacing="0">
   			<%@include file="/WEB-INF/core/common/message.jsp"%>
			<tr width="100%">
				<td>
			  		<table border="0" align="center" cellpadding="0" cellspacing="0">
			  			<tr>
							<td width="8" height="27" align="left"><img src="${ctx}/core/images/button_05.gif" width="8" height="27" /></td>
						    <td width="99%"  align="left" background="${ctx}/core/images/button_06.gif" class="bluecu">&nbsp;<img src="${ctx}/core/images/icon_04.gif" />&nbsp;<s:text name="operator.operatorManage" /></td>
						    <td width="8" align="right"><img src="${ctx}/core/images/button_07.gif" width="8" height="27" /></td>
						</tr>
    				</table>
    			</td>
			</tr>
			<tr>
    			<td colspan="3" class="biaoge"  valign="top">
					<table width="100%" border="0" align="center" cellspacing="0"  valign="top">
					<form name="mainForm" method="post" action="operatorSearch.action">
		      			<tr>
		        			<td height="10"></td>
		      			</tr>
						<tr>
							<!-- 查询条件 -->
							<td class="tabulation"><div style="position:relative">
          						<div id="menu1"><img src="${ctx}/core/images/icon_13.gif"><s:text name='info.queryCondition'/></div></div>
          				
	    						<table width="100%" border="0" cellpadding="0" cellspacing="1" bordercolor="#FFFFFF">
									<input type="hidden" name="act" value="query"/>
									<tr align="left">
		        						<td width="6%" height="20" bgcolor="#DDE4EA" nowrap>&nbsp;<s:text name='operator.loginName'/>&nbsp;</td>
										<td bgcolor="#DDE4EA" width="27%">
										    <exts:textfield id="q_loginName" name="q_loginName" value="%{q_loginName}" class="textbox_css" style="width:150px" />
										</td>
										<td width="6%" bgcolor="#DDE4EA" nowrap>&nbsp;<s:text name='operator.name'/>&nbsp;</td>
										<td bgcolor="#DDE4EA" width="27%">
											<exts:textfield id="q_userName" name="q_userName" value="%{q_userName}" class="textbox_css" style="width:150px" />
										</td>
		      						</tr>
		      						<tr>
										<td height="20" colspan="4" align="right" bgcolor="#DDE4EA">
											<input id="searchButton"  type="submit" class="btn" value="<s:text name='button.query'/>"/>
										</td>
		      						</tr>
	    						</table>
    					
    						</td>
							<!-- 查询条件结束 -->
		      			</tr>
						<tr>
							<td height="5"></td>
						</tr>
						<tr>
							<td height="10" background="${ctx}/core/images/line5.gif"></td>
						</tr>
						</form>
						<tr>
							<td height="25" align="left">
						    	<input id="addButtom" onclick="doAdd();" name="button" type="button" class="btn" value="<s:text name='button.new'/>"/>
						    </td>
						</tr>
						<tr>
							<td>
						    <!-- 定义表格 -->
						    	<table id="content" width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#A6A6A6">
						        	<tr>
						            	<td width="45%" height="20" align="center" bgcolor="#C7D6EA" class="table_head"><s:text name='operator.loginName'/></td>
						                <td width="45%" align="cente bgcolor="#C7D6EA" class="table_head"><s:text name='operator.name'/></td>
						                
						                <td align="center" bgcolor="#C7D6EA" class="table_head"><s:text name='info.operate'/></td>
						            </tr>
								<s:iterator value="pageInfo.searchResult" id="it" status="optr">
							        <tr>
							        	<td height="20" align="center"><exts:property value="0"/></td>
							            <td align="center"><exts:property value="1"/></td>
							            
							            <td align="center">
							            	<table height="16" border="0" cellpadding="0" cellspacing="0">
									        	<tr>
									            <s:if test="%{pageInfo.searchResult[#optr.index][0]!='admin'}">	
									            	<td width="22" align="right"><a href="javascript:doEdit(<exts:property value='2'/>);"><img src="${ctx}/core/images/edit.gif" name="icon_064"  border="0" id="icon_064" style="CURSOR: hand" title="<s:text name='button.edit'/>"/></a></td>
									            </s:if>
									                <td width="22" align="right"><a href="javascript:doView(<exts:property value='2'/>);"><img src="${ctx}/core/images/view.gif" name="icon_064"  border="0" id="icon_064" style="CURSOR: hand" title="<s:text name='button.view'/>"/></a></td>
												<s:if test="%{pageInfo.searchResult[#optr.index][0]!='admin'}">
									            	<td width="22" align="right"><a href="javascript:doDelete(<exts:property value='2'/>);"><img src="${ctx}/core/images/del.gif" name="icon_074"  border="0" id="icon_074" style="CURSOR: hand" title="<s:text name='button.delete'/>"/></a></td>
									            </s:if>
									            </tr>
								            </table>
										</td>
									</tr>
								</s:iterator>
								</table>
								<!-- 定义表格结束 -->
						        <table width="100%" border="0" cellspacing="0" cellpadding="0">
						        	<tr>
						            	<td><s:text name='pagination'/></td>
						            </tr>
						        </table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</body>
</html>
<script>
	tables('content',null);
</script>